package cn.regexp.canal.domain;

import lombok.Getter;
import lombok.Setter;

import javax.persistence.Column;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @author Regexpei
 * @date 2024/7/6 16:41
 * @description 订单信息实体
 */
@Getter
@Setter
public class OrderInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 未付款
     */
    public static final Integer STATUS_ARREARAGE = 0;

    @Column(name = "order_no")
    private String orderNo;
    @Column(name = "user_id")
    private Long userId;
    @Column(name = "product_id")
    private Long productId;
    @Column(name = "delivery_addr_id")
    private Long deliveryAddrId;
    @Column(name = "product_name")
    private String productName;
    @Column(name = "product_img")
    private String productImg;
    @Column(name = "product_count")
    private Integer productCount;
    @Column(name = "product_price")
    private BigDecimal productPrice;
    @Column(name = "seckill_price")
    private BigDecimal seckillPrice;
    @Column(name = "integral")
    private Long integral;
    @Column(name = "status")
    private Integer status = STATUS_ARREARAGE;
    @Column(name = "create_date")
    private Date createDate;
    @Column(name = "pay_date")
    private Date payDate;
    @Column(name = "pay_type")
    private Integer payType;
    @Column(name = "seckill_date")
    private Date seckillDate;
    private Integer seckillTime;
    @Column(name = "seckill_id")
    private Long seckillId;
}
